<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/layouts/include/taglib.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/> 
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="decorator" content="default" />
		<title>生产管理系统</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="${ctx}/static/ace/assets/css/fullcalendar.css" />
		<script type="text/javascript">
			var roleNo = '<shiro:principal property="roleNo"/>'; //当前登录角色
		</script>
	</head>

	<body>
		<div class="page-content">
			<div class="row">
				<div class="col-xs-12">
					<!-- PAGE CONTENT BEGINS -->
					<input type="hidden" id="empNo">
					<input type="hidden" id="roleNo">
					<div class="row">
						<div class="col-sm-2">
							<div class="widget-box w-custom">
										<div class="widget-header widget-header-large">
											<h4 class="gray">
												<i class="light-blue icon-user"></i>
												人员
											</h4>
											<div>												
											<ul id = "selectWork">													
											
											</ul>										
											</div>
										</div>
										
							</div>	
							
						</div>
						<div class="col-sm-5">
							<div id="calendar"></div>
						</div>
						<div class="col-sm-5">
							<div class="widget-box w-custom" id="recent-box">
								<div class="widget-header widget-header-large gray" id="role-task-list">
									
								</div>
								<div class="tab-content">
									<div class="tab-pane in active">
										<ul class="item-list" id="taskListUl" >		
										</ul> 
									</div>
								</div>
							</div>
						</div>
						<div class="col-sm-5">
							<div class="widget-box w-custom" id="recent-box">
								<div class="widget-header widget-header-large">
									<h4 class="dark">
										<i class="icon-rss light-blue"></i>
										<span id="selectEmpName"></span>&nbsp;&nbsp;项目
									</h4>
								</div>

								<div class="widget-body">
									<div class="widget-main padding-4">
										<div class="tab-content padding-8 overflow-visible">
											<div id="task-tab" class="tab-pane active">
												<!-- 动态生成-->
												<ul id="prjUL" class="item-list">	
													
												</ul> 
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>	
					</div>
				</div>
			</div>
		</div>		
<!-- 显示 进行中  未开始 待确认的任务-->
<script id="showListTask" type="x-tmpl-mustache">
		{{#data}}
			<li class="text-warning bigger-110 orange clearfix item-orange">
				<label class="inline col-sm-4">
					<span class="lbl">{{taskName}}</span>
				</label>		
				<label  class="inline col-sm-4">
					<span class="lbl">
						{{#formatDt}}{{startDate}}{{/formatDt}}
					</span>
				</label>
				<label  class="inline">
					<span class="lbl">
						{{#formatDt}}{{endDate}}{{/formatDt}}
					</span>
				</label>
				<div class="pull-right action-buttons">
					<a href="#" class="blue" key="{{prjId}} ">
						<i class="icon-pencil bigger-130"></i>
					</a>
				</div>
			</li>
		{{/data}}		
 </script>
 
<!-- 显示 待审核的文档任务-->
<script id="showRoleListTask" type="x-tmpl-mustache">
		{{#data}}
			<li class="text-warning bigger-110 orange clearfix item-orange">
				<label class="inline col-sm-4">
					<span class="lbl">{{fileName}}</span>
				</label>		
				<label  class="inline col-sm-4">
					<span class="lbl">
						提交时间{{#formatDt}}{{createDt}}{{/formatDt}}
					</span>
				</label>
				<label  class="inline">
					<span class="lbl">
						审核时间{{#formatDt}}{{updateDt}}{{/formatDt}}
					</span>
				</label>
				<div class="pull-right action-buttons">
					<a href="#" class="blue" key="{{projectId}} ">
						<i class="icon-pencil bigger-130"></i>
					</a>
				</div>
			</li>
		{{/data}}		
 </script>
 
 <!-- 我的项目-->
<script id="showListProject" type="x-tmpl-mustache">
		{{#data}}
			<li class="text-warning bigger-110 orange clearfix item-orange">
				<label class="inline col-sm-4">
					<span class="lbl">{{prjName}}</span>
				</label>		
				<label  class="inline col-sm-4">
					<span class="lbl">
						{{#formatDt}}{{startDate}}{{/formatDt}}
					</span>
				</label>
				<label  class="inline">
					<span class="lbl">
						{{#formatDt}}{{endDate}}{{/formatDt}}
					</span>
				</label>
				<div class="pull-right action-buttons">
					<a href="#" class="blue" key="{{uuid}} ">
						<i class="icon-pencil bigger-130"></i>
					</a>
				</div>
			</li>
		{{/data}}			
 </script>
 <!-- 我的项目-->
<script id="show-role-task-list" type="x-tmpl-mustache">
		<h4 class="gray">
			<i class="icon-rss light-blue"></i>
			<span id="selectEmpTask"></span>&nbsp;&nbsp;文档审核、项目审核
		</h4>
			<div class="widget-toolbar no-border">
				<ul class="nav nav-tabs" id="myStack">
					<li class="active">
						<a data-toggle="tab"  key="SUBMIT">待审核</a>
					</li>
					<li class="">
						<a data-toggle="tab"  key="SUCCESS">审核成功</a>
					</li>
					<li class="">
						<a data-toggle="tab"  key="FAILURE">审核失败</a>
					</li>
				</ul>
			</div>
 </script>
 
  <script id="show-role-task-listOne" type="x-tmpl-mustache">
		 <h4 class="gray">
			<i class="icon-rss light-blue"></i>
			<span id="selectEmpTask"></span>&nbsp;&nbsp;任务
		</h4>
		<div class="widget-toolbar no-border">
			<ul class="nav nav-tabs" id="myStack">
				<li class="">
					<a data-toggle="tab"  key="30050001">准备中</a>
				</li>
		
				<li class="active">
					<a data-toggle="tab" key="30050002" >进行中</a>
				</li>
		
				<li class="">
					<a data-toggle="tab" key="30050003">未确认</a>
				</li>
				
			</ul>
		</div>
 </script>

 
  <!-- 查看项目-->
<script id="show-man" type="x-tmpl-mustache">		
	{{#data}}
		<li class="block">
			<a href="#" key={{empNo}} empName={{empName}}><i class="icon-user">&nbsp;&nbsp;&nbsp;{{empName}}</i></a>
		</li>
	{{/data}}
 </script>
<script src="${ctx}/work.js"></script>
<script src="${ctx}/static/ace/assets/js/fullcalendar.min.js"></script>

</body>
</html>